package com.webqq.client.controller;

import com.webqq.client.service.WebqqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/9/28 0028.
 */
@RestController
public class WebqqController {
    @Autowired
    private WebqqService webqqService;

    @PostMapping("/event")
    public String event(String s){
        System.out.println(s);
        return s;
    }
    @GetMapping("/webqq-client")
    public String getClientEvent() throws Exception{
        String s=webqqService.checkEvent();
        return s;
    }
}
